package org.dromara.xxmj.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.xxmj.domain.XxmjUserExt;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Date;

/**
 * 小巷密卷用户扩展业务对象
 *
 * @author Lion Li
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XxmjUserExt.class, reverseConvertGenerate = false)
public class XxmjUserExtBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户分类（1专升本 2单招）
     */
    @NotBlank(message = "用户分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userCategory;

    /**
     * 手机是否验证（0否 1是）
     */
    private String phoneVerified;

    /**
     * 学习进度
     */
    private Integer studyProgress;

    /**
     * 注册时间
     */
    private Date registerTime;

    /**
     * 最后学习时间
     */
    private Date lastLoginTime;
} 